package com.smart.list.service.impl;

import java.util.List;

import com.smart.list.service.ContextService;

public class ContextServiceImpl implements ContextService {
	private List<String> context;
	public boolean addToContext(List<String> context) {
		return this.context.addAll(context);
	}
	
	public boolean removeFromContext(List<String> context) {
		boolean status = false;
		for (String cont : context){
			status = this.context.remove(cont);
		}
		return status;
	}

	public List<String> getContext() {
		return context;
	}
}
